Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra fields to group wrapper #454

Merged
merged 5 commits into from
Aug 1, 2024
Merged

Add extra fields to group wrapper #454

merged 5 commits into from
Aug 1, 2024

Conversation

nplasterer
Copy link
Contributor

@nplasterer nplasterer commented Jul 31, 2024

This adds a few extra fields to the group wrapper so listing groups can have access to name and urls more efficiently.
Also exposes dbPath and a static inbox id method on client.

Closes: #453
Closes: #451

@nplasterer nplasterer self-assigned this Jul 31, 2024
@nplasterer nplasterer requested a review from a team as a code owner July 31, 2024 03:36
Comment on lines +23 to +24
"description" to group.description,
"pinnedFrameUrl" to group.pinnedFrameUrl
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably no cost in adding these as well here. But I don't really see a scenario where you would need them in a group list context?

Copy link
Collaborator

@nmalzieu nmalzieu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to avoid calling the RN bridge later right?

Always a nice to have, however as discussed with Alex I think that if we managed to kill libxmtp with deadlocks, even if Converse absolutely needs to be optimized, given the # of groups we have, it means there is a bug in libxmtp we need to fix.

LGTM

@nplasterer nplasterer merged commit 9c662f0 into main Aug 1, 2024
5 of 6 checks passed
@nplasterer nplasterer deleted the np/group-improvements branch August 1, 2024 01:47
Copy link
Contributor

github-actions bot commented Aug 1, 2024

🎉 This PR is included in version 2.1.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Name and URL to Group Wrapper Client create method improvements
2 participants